import time
import multiprocessing

def calc_square(arg,q):
    for n in arg:
        time.sleep(1)
        print ('square is ' + str(n * n))
        q.put(n*n)



if __name__ == "__main__":
    arg1=[2,3]
    q=multiprocessing.Queue()
    p1 = multiprocessing.Process(target=calc_square,args=(arg1,q))


    p1.start()
    p1.join()
    print ('Done')
    while q.empty() is  False:
        print ('+'*30)
        print (q.get())